package imnu0713_work;

import java.util.Scanner;

public class Test_06 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入三个数：");
        int x = sc.nextInt();
        int y = sc.nextInt();
        int z = sc.nextInt();
        int t = 0;

        if(x > y){
            t = x;
            x = y;
            y = t;
        }
        if(x > z){
            t = x;
            x = z;
            z = t;
        }
        if(y > z){
            t = y;
            y = z;
            z = t;
        }
        System.out.println("排序后的顺序为："+x+"<"+y+"<"+z);

    }
}
